package com.fanx.redis.lock.core;

/**
 * @author fanhang
 */
public interface RedisLockable {

	boolean lock(String lockName, String value, int expireSeconds, int retryCount, int retryInterval)
			throws InterruptedException;

	boolean tryLock(String lockName, String value, int expireSeconds) throws InterruptedException;

	boolean unlock(String lockName, String value);

}
